<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  
    <title>文档信息</title>
      <style>
          table {
              font-size: 12px;
          }
      </style>
  
  </head>
  
  <body>
   
   <h3 align="center">文档查询结果</h3>
   
   <h5 align="center"><a href="fileSearch.jsp">查询文档</a></h5>
   <table border="1" align="center" width="55%" cellspacing="0">
   <tr>
   <th>序号</th>
   <th>文件名</th>
   <th>文件类型</th> 
   <th>文件大小</th>
   <th>文件路径</th>
   <th>创建者</th>
   <th>创建日期</th>
   <th>是否删除</th>
   <th></th>
   <th></th>
   
   </tr>
       <c:forEach items="${sessionScope.fileInfoList}" var="fileInfo" varStatus="st">
   <tr>
    <td>${st.index+1}</td>
    <td> ${fileInfo.fileName}</td>
    <td> ${fileInfo.fileType}</td>
    <td> ${fileInfo.fileSize}</td>
    <td> ${fileInfo.filePath}</td>
    <td> ${fileInfo.creator}</td>
    <td> ${fileInfo.fileDate}</td>
    <td>
        <c:choose>
            <c:when test="${fileInfo.fileDelete == 0 }">未删除</c:when>
            <c:otherwise>已删除</c:otherwise>
        </c:choose>
    </td>
      
    <td> <a href="!preupdateFile.action?id=<s:property value='fileId' />" >修改</a></td>
    <td> <a href="fileManager!deleteFile.action?id=<s:property value='fileId' />" >删除</a></td>
  </tr> 
       </c:forEach>
   </table>
   
  </body>
</html>
